//
//  APIClient.h
//  YDdDemo
//
//  Created by 瞿伦平 on 2017/10/20.
//  Copyright © 2017年 瞿伦平. All rights reserved.
//

#import "APIObject.h"
#import "AFNetworking.h"
#import "QUObject.h"
#import "QUCustomDefine.h"


typedef void (^TableBlock)(NSMutableArray *tableArr, APIObject* info);

@interface APIClient : AFHTTPSessionManager

+ (instancetype)sharedClient;
//获取评论
-(void)comentListWithShopId:(NSString *)iD call:(TableBlock)callback;
//获取分类商品
-(void)goodsListWithShopId:(NSString *)iD call:(TableBlock)callback;
//获取配送费
-(void)getShippingfeeCall:(void (^)(APIObject* info))callback;
//获取距离
-(void)getKmWithStart:(CLLocationCoordinate2D)start end:(CLLocationCoordinate2D)end call:(void (^)(float km, APIObject* info))callback;

@end
